﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace ADB_QuanLyThuVien
{
    public partial class frmDanhSachMuonSach : DevExpress.XtraEditors.XtraForm
    {
        private Account acc;
        private frmTrangChu frmTrangChu;

        public frmDanhSachMuonSach()
        {
            InitializeComponent();
        }

        public frmDanhSachMuonSach(Account acc, frmTrangChu frmTrangChu)
        {
            // TODO: Complete member initialization
            this.acc = acc;
            this.frmTrangChu = frmTrangChu;
            InitializeComponent();
        }

        private void frmDanhSachMuonSach_Load(object sender, EventArgs e)
        {
            List<PhieuMuon> lPhieuMuon = DAO_PhieuMuon.SelectAll();
            phieuMuonBindingSource.DataSource = lPhieuMuon;
            QLTV_System.SetNumberColumn(lBookDataGridView);

        }

        private void emailLabel1_TextChanged(object sender, EventArgs e)
        {
            QLTV_System.SetNumberColumn(lBookDataGridView);
        }

        private void emailLabel1_Validating(object sender, CancelEventArgs e)
        {
            QLTV_System.SetNumberColumn(lBookDataGridView);
        }
    }
}